package com.chenjj.java.test.proxy.jdkproxy;

import com.chenjj.java.proxy.jdkproxy.JdkProxy;
import com.chenjj.java.proxy.jdkproxy.RealSubject;
import com.chenjj.java.proxy.jdkproxy.Subject;
import org.junit.Test;

public class JdkProxyTester {

    @Test
    public void test1(){
        Subject realSubject = new RealSubject();
        JdkProxy jdkProxy = new JdkProxy();
        Subject proxySubject = jdkProxy.band(realSubject);
        proxySubject.doSomething();
    }
}
